﻿<Window x:Class="Scope_EtherCAT.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:avalondock="http://avalondock.codeplex.com"
        xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
        Title="Scope EtherCat" Height="350" Width="525" MinHeight="600" MinWidth="800" Closing="Window_Closing">
    <Grid Name="MainGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="24"/>
            <RowDefinition Height="24"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="24"/>
        </Grid.RowDefinitions>
        <Menu Grid.Row ="0" Height="24" HorizontalAlignment="Stretch" Name="MainMenu" VerticalAlignment="Top">
            <MenuItem Header="File">
                <MenuItem Header="New" Name="menu_FileNew" Click="menu_FileNew_Click" />
                <MenuItem Header="Open" Name="menu_FileOpen" />
            </MenuItem>
            <MenuItem Header="Parameter">
                <MenuItem Header="Save Layout" Name="layoutSave"  />
                <MenuItem Header="Load Layout" Name="layoutRestore"  />
            </MenuItem>
        </Menu>
        <ToolBar Grid.Row="1" Grid.RowSpan="2" Height="24" HorizontalAlignment="Stretch" Name="toolBar1" VerticalAlignment="Top" >
            <Image  Height="20" Name="imgStart" Width="20" Source="/Scope_EtherCAT;component/Images/Go.png" MouseLeftButtonUp="imgStart_MouseLeftButtonUp" />
            <Image  Height="20" Name="imgPause" Width="20" Source="/Scope_EtherCAT;component/Images/Pause.png" MouseLeftButtonUp="imgPause_MouseLeftButtonUp" />
            <Image  Height="20" Name="imgStop" Width="20" Source="/Scope_EtherCAT;component/Images/Stop.png" MouseLeftButtonUp="imgStop_MouseLeftButtonUp" />
        </ToolBar>
            <ad:DockingManager x:Name="dockManager" Grid.Row="2">
            <ad:ResizingPanel Orientation="Vertical">
                <ad:ResizingPanel Orientation="Horizontal">
                    <ad:DocumentPane>
                        <ad:DocumentContent Title="Vue" IsCloseable="False" IsTabStop="False">
                            <Grid Name="DocGrid">

                            </Grid>
                        </ad:DocumentContent>
                    </ad:DocumentPane>
                    <ad:DockablePane ad:ResizingPanel.ResizeWidth="190">
                        <ad:DockableContent x:Name="recordContent" Title="Record" IsCloseable="False">
                            <Grid Name="recordGrid">

                            </Grid>
                        </ad:DockableContent>
                        <ad:DockableContent x:Name="graphContent" Title="Graph." IsCloseable="False">
                            <Grid Name="graphGrid">

                            </Grid>
                        </ad:DockableContent>
                        <ad:DockableContent x:Name="axeYContent" Title="Axe Y" IsCloseable="False">
                            <Grid Name="axeYGrid">

                            </Grid>
                        </ad:DockableContent>
                        <ad:DockableContent x:Name="canalContent" Title="Canal" IsCloseable="False">
                            <Grid Name="canalGrid">

                            </Grid>
                        </ad:DockableContent>
                    </ad:DockablePane>

                </ad:ResizingPanel>
                <ad:DockablePane ad:ResizingPanel.ResizeHeight="200">
                    <ad:DockableContent Title="Ethernet Port" x:Name="EthernetContent" IsCloseable="False">
                        <Grid Name="portContent">
                            <DataGrid AutoGenerateColumns="False" Height="140" HorizontalAlignment="Left"  Name="dataGridPort" VerticalAlignment="Top" Width="500"  ItemsSource="{Binding}" IsVisibleChanged="dataGridPort_IsVisibleChanged" SelectionChanged="dataGridPort_SelectionChanged">
                                <DataGrid.Columns>
                                    <DataGridTextColumn Header="ID" Binding="{Binding ID}" Visibility="Hidden"/>
                                    <DataGridTextColumn Header="Nom" Binding="{Binding Name}" Width="180"/>
                                    <DataGridTextColumn Header="Description " Binding="{Binding Description}" Width="300"/>
                                </DataGrid.Columns>
                            </DataGrid>
                        </Grid>
                    </ad:DockableContent>
                    <ad:DockableContent Title="Cursor" x:Name="cursorContent" IsCloseable="False">
                        <Grid Name="cursorGrid">

                        </Grid>
                    </ad:DockableContent>
                    <ad:DockableContent Title="Trigger" x:Name="triggerContent" IsCloseable="False">
                        <Grid Name="triggerGrid">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="49" />
                                <ColumnDefinition Width="727" />
                            </Grid.ColumnDefinitions>
                        </Grid>
                    </ad:DockableContent>
                </ad:DockablePane>
            </ad:ResizingPanel>
        </ad:DockingManager>

        <StatusBar Grid.Row="3" Height="24" HorizontalAlignment="Stretch" Name="MainStatusBar" VerticalAlignment="Bottom">
            <Ellipse Height="18" Visibility="Hidden" HorizontalAlignment="Left"  Name="elpsRecording" Stroke="#FFB8AE" VerticalAlignment="Center" Width="18" Fill="#FFFF9F9F" />
            <Label Content="Label"  Height="18" HorizontalAlignment="Left" Name="lblStatistic" VerticalAlignment="Center" FontSize="7" Visibility="Hidden" />
        </StatusBar>
        
    </Grid>
</Window>
